package cn.kgc.service;

import cn.kgc.bean.*;
import com.github.pagehelper.PageInfo;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface LiverService {
    /*获取全部住户集合*/
    public List<Liver> selectLiverList();
    //登录
    public Liver login(String loginName,String password);
    //注册
    public int regist(String phone,String email,String password,String code);
    //修改更新住户数据
    public int update(Liver liver);
    //根据id查询某个住户的信息
    public Liver getLiverById(Integer id);
    //根据住户id和时间段查询缴费记录
    public PageInfo<Liverorder> selectOrders(Integer pageNum, Integer pageSize, Integer id, Date startTime, Date endTime);
    //维修反馈
    public  int addWxfk(Wxfk wxfk);
    //根据反馈id查询反馈信息
    public Wxfk getWxfkById(Integer id);
    /*根据绑定的公寓id查询公寓信息*/
    public House getHouseById(Integer houseId);
    /*验证码发送*/
    public Map<String,Object> addLiverCode(String code, String registName, Integer type);
    /*增加住户缴费订单*/
    public int addLiverOrder(Liverorder liverorder);
    /*根据订单编号查询订单*/
    public Liverorder selectOrderByOrderNo(String orderno);
    /*修改订单状态*/
    public int updateLiverOrderState(Liverorder liverorder);
    /*根据公寓id查询公寓总管理员信息*/
    public Manage selectZmanageByHouseId(Integer id);
    /*修改公寓总管理的余额*/
    public void  updateZmanagerMoney(Manage zmanager);
    /*根据房间编号查询房间详细信息*/
    public Room selectRoomById(Integer id);
    /*根据房间编号查询住户*/
    public List<Liver> selectLiverByRoomId(Integer id);
    /*查询住户*/
   PageInfo<Liver> getLiver(Integer pageNum,Integer pageSize,String loginName);

}
